package edu.zju.gis.dldsj.service;

import edu.zju.gis.dldsj.base.BaseService;
import edu.zju.gis.dldsj.entity.DataVisit;
import edu.zju.gis.dldsj.entity.vo.StorageWithVisit;
import edu.zju.gis.dldsj.model.Storage;

import java.util.List;

/**
 * @author yanlo yanlong_lee@qq.com
 * @version 1.0 2018/08/09
 */
public interface StorageService extends BaseService<Storage, String> {
    int getTotalSize();

    DataVisit getVisit(String dataId);

    List<DataVisit> getVisit(List<String> dataIdList);

    List<StorageWithVisit> getByVisitAsc(int offset, int size);

    List<StorageWithVisit> getByVisitDesc(int offset, int size);

    int getSizeByComment(String comment);

    List<StorageWithVisit> getByCommentAndVisitDesc(String comment, int offset, int size);
}
